package com.bdqn.crm.pojo;

import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2021-12-16 
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("sys_right")
public class SysRight implements Serializable {

	private static final long serialVersionUID =  7062016901018679932L;

	@TableId(type = IdType.AUTO)
	private String rightCode;

	private String rightParentCode;

	private String rightType;

	private String rightText;

	private String rightUrl;

	private String rightTip;

	/*//多对多
	@ManyToMany(targetEntity = SysRole.class,mappedBy = "rights")
	@JsonIgnore //转JSON忽略
	private Set<SysRole> roles = new HashSet<SysRole>(0);
*/
}
